package ch07;

class _23_InterfaceTest { 
    public static void main(String args[]) { 
          A a = new A(); 
          a.methodA(new B()); 
    } 
}

class A {
      public void methodA(B b) { 
            b.methodB(); 
      } 
} 

class B { 
      public void methodB() { 
            System.out.println("methodB()"); 
      } 
} 
/*
methodB()
*/
